package com.cskaoyan.demo8.mapper;

import com.cskaoyan.demo8.bean.User;


public interface UserMapper {

    User selectByName(String name);
    /**
     * 一次性查询出user和user_detail表中的信息SQL
     * select * from cskaoyan_user i
     * LEFT JOIN cskaoyan_user_detail ud on u.id = ud.user_id
     * where u.username = '张三'
     */
    User selectByName2(String name);


}
